package com.boot2.core.utils;

/**
 * @author zhangweilin
 * @Description: xxxxx
 * @date 2021/2/2
 */
public class SysUtil {

    /**
     * 判断是否为某操作系统
     *
     * @param osNamePrefix
     * @return
     */
    public static boolean getOSMatches(String osNamePrefix) {
        String os = System.getProperty("os.name");

        if (os == null) {
            return false;
        }
        return os.startsWith(osNamePrefix);
    }

}
